//
//  HomePicDetailsDSCell.m
//  ioschishan
//
//  Created by 马田成 on 2017/8/10.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "HomePicDetailsDSCell.h"
#import "HomePicDetailsModel.h"
@implementation HomePicDetailsDSCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.header_img.layer.cornerRadius = 20.0f;
    self.header_img.layer.masksToBounds = YES;
    
    // Initialization code
}
- (void)setModel:(HomePicDetailsModel *)model{

    _model = model;
    
    NSString *urlHeaderPic=manage(AP_HOST, model.header_img);
    [self.header_img sd_setImageWithURL:[NSURL URLWithString:urlHeaderPic] placeholderImage:[UIImage imageNamed:@""]];
    self.add_time.text = [ToolAboutTime getTimeStrByTimeSp:model.add_time];
    self.user_name.text = model.user_name;
    self.reward.text = [model.reward stringByAppendingString:@"水滴"];
    
    
    
    

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
